package com.byxy.ssm.demo.dao;

import java.util.List;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import com.byxy.ssm.demo.entity.Reply;
public interface ReplyDao{
//	private Integer replyId;//回复id
//	private Integer userId;//回复人id
//	private Integer tipId;//被回复贴id
//	private String replyContent;//回复内容
//	private Data replyPublishTime;//回复发表时间
//	private Data replyModifyTime;//回复修改时间
//	private Integer replyStatus;//回复状态，0正常，1逻辑删除
	@Results(id="rep",value={
			@Result(column="reply_id",property="replyId",id=true),
			@Result(column="user_id",property="userId"),
			@Result(column="tip_id",property="tipId"),
			@Result(column="reply_content",property="replyContent"),
			@Result(column="reply_publishTime",property="replyPublishTime"),
			@Result(column="reply_modifyTime",property="replyModifyTime"),
			@Result(column="reply_status",property="replyStatus"),
		})
	@Select("select * from reply where tip_id=#{tipId}")
	List<Reply> findByTipId(Integer tipId);

}
